package my.test.builder;

import java.util.ArrayList;

public class Client2 {

    public static void main(String[] args) {
        //存放run的顺序
        ArrayList<String> sequence = new ArrayList<>();
        sequence.add("engine boom");
        sequence.add("start");
        sequence.add("stop");

        //要开一个奔驰车
        BenzBuilder benzBuilder = new BenzBuilder();
        benzBuilder.setSequence(sequence);
        benzBuilder.getCarModel().run();
    }
}
